package shujia.day04.ketang;

public class Animal {
    private String name;
    private int age;

    // alt + insert
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void show(){
        System.out.println("姓名："+this.name+", 年龄："+this.age);
    }
}
